package com.cdcas.dept;

public class MainTest {
    public static final String EMP_DATA = "empno:222|ename:aaa|job:myJob|salary:3000.0|" +
            "hiredate:2025-04-21 14:21:30|dept.deptno:20|dept.dname:dename|dept.company.cno:1|" +
            "dept.company.cname:公司名称";

    public static void main(String[] args) {
        Emp emp= ObjectInstanceFactory.create(Emp.class,EMP_DATA);
        System.out.println(emp);
        System.out.println(emp.getDept());
        System.out.println(emp.getDept().getCompany());
    }
}
